import { createApp } from "vue";

// element-plus-ui
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

// router
import router from "./router";

// vuex
import store from "./store";
import storage from "./utils/storage";

import api from "./api";
import request from "./utils/request";

import App from "./App.vue";

// console.log("环境", import.meta.env);
const app = createApp(App);

// 挂载到原型链上
app.config.globalProperties.$store = store;
app.config.globalProperties.$api = api;
app.config.globalProperties.$request = request;
app.config.globalProperties.$storage = storage;

app.use(router).use(ElementPlus).mount("#app");
